﻿<%@ Page Language="C#" MasterPageFile="~/Shared.Master" AutoEventWireup="true" CodeBehind="fileadd.aspx.cs"
    Inherits="Lawyer.Web.addfile" Title="Legal Firm Management System V1.0" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

<script type="text/javascript">
$(function(){
       $(".form-input input[type='checkbox'] ").click(function(){
        var check=$(this).attr("checked");
        if(check){
        $("div.archive").show("slow");
        }else{
             $("div.archive").hide("slow");        
        }
       });
})

</script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContent" runat="server">
    <div class="main-content">
                        <header>
                            <h2>Resource Add</h2>
                        </header>
                        
                        <section class="container_6 clearfix">
                            <!-- Forms Section -->
                            <div class="grid_3">
                                <div class="portlet">
                                    <header>
                                        <h2>Resource Add</h2>
                                    </header>
                                    <section class="form has-validation">
                                  
                                            <div class="clearfix">
                                                <label for="form-name" class="form-label" >File Name <em>*</em><small>Enter your 
                                                file name</small></label>
                                                <div class="form-input"><input type="text" id="txtFileName" name="name" required="required" runat="server" /></div>
                                            </div>
                                            <div class="clearfix">
                                                <label for="form-textarea" class="form-label">File Note <em>*</em><small>Describe 
                                                file</small></label>
                                                <div class="form-input form-textarea"><asp:TextBox ID="txtFileNote" TextMode="MultiLine" runat="server"></asp:TextBox></div>
                                            </div>
                                            <div class="clearfix">
                                                <label for="form-upload" class="form-label">File<small>choose your file</small></label>
                                                <div class="form-input"><asp:FileUpload ID="fileUpload" runat="server"></asp:FileUpload></div>
                                            </div>
                                            
                                            <div class="clearfix" id="checkDiv" runat="server">
                                                <label id="Label1" for="form-updates" class="form-label" runat="server">Case Related? <small>file related with case </small></label>
                                                &nbsp;<div class="form-input"><input type="checkbox" id="checkArchive" value="1" runat ="server" /></div>
                                            </div>
                                            
                                            <div class="clearfix archive nonedisplay" id="ArchiveDiv" runat="server">
                                                <label for="form-timezone" class="form-label">Choose Archive <small>Choose your 
                                                relative archive</small></label>
                                                <div class="form-input"><asp:DropDownList ID="ArchiveList" runat="server"></asp:DropDownList></div>
                                            </div>
                                            
                                            <div class="clearfix">
                                                &nbsp;<div class="form-input"></div>
                                            </div>
                                            <div class="form-action clearfix">
                                                <asp:Button CssClass="large button-gray ui-corner-all" ID="btnOK" runat="server" Text="OK" onclick="btnOK_Click"></asp:Button>
                                                <input  type="button" class="large button-gray ui-corner-all" onclick="javascript:history.go(-1);" value="go back" />
                                                
                                            </div>
                                    </section>
                                </div>
                            </div>
                            <!-- End Forms Section -->

                            <!-- Forms Section -->
                            <!-- End Forms Section -->

                        </section>
                    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="SideBar" runat="server">
 <nav>
    <a class="chevron" href="#">»</a>
    <ul>
        <li class="current"><a href="fileadd.aspx">New Resource</a></li>
        <li><a href="file.aspx">My Resource</a></li>
    </ul>
</nav>
</asp:Content>
                